import request from '@/utils/request'

// 广告-列表
export const getList = (data) => {
  return request({
    url: '/building/list',
    method: 'get',
    params: data
  })
}
// 广告-增
export const getAdd = (data) => {
  return request({
    url: '/building',
    method: 'post',
    data
  })
}
// 广告-删
export const getDelete = (id) => {
  return request({
    url: '/building',
    method: 'delete',
    data:id
  })
}
// 广告-改
export const getUpdate = (data) => {
  return request({
    url: '/building',
    method: 'put',
    data
  })
}
// 广告-详情
export const getDetail = (id) => {
  return request({
    url: '/building/'+id,
    method: 'get',
  })
}

export default { getList, getAdd, getDelete, getUpdate, getDetail }